import request from "@/utils/request";

//查询商品属性list列表tree
export const getStastsList = props => {
  return request({
    url: "/mall/admin/stasts/getStastsListByTree",
    method: "post",
    data: props
  });
};

//保存、修改商品属性
export const saveOrEditStasts = props => {
  return request({
    url: "/mall/admin/stasts/saveStasts",
    method: "post",
    data: props
  });
};

//复制商品属性
export const copyStasts = props => {
  return request({
    url: "/mall/admin/stasts/copyStasts",
    method: "post",
    data: props
  });
};

//删除分类信息
export const deleteStasts = props => {
  return request({
    url: "/mall/admin/stasts/deleteStasts",
    method: "delete",
    params: props
  });
};

//获取富文本信息
export const getRichText = props => {
  return request({
    url: "/sass/rich/getRichText",
    method: "post",
    data: props
  });
};
//保存富文本信息
export const saveSassRichText = props => {
  return request({
    url: "/sass/rich/saveSassRichText",
    method: "post",
    data: props
  });
};
